home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / fbpatch.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-01-13  |  6KB  |  194 lines

  1. @echo off
  2. cls
  3. echo 
  4. echo 
  5. echo 
  6. echo                     ╔═══════════════════════════════════╗
  7. echo                     ║    Front Page Sports: Football    ║
  8. echo                     ║        Version 1.02 Update        ║
  9. echo                     ║   Copyright 1993  Dynamix, Inc.   ║
  10. echo                     ╚═══════════════════════════════════╝
  11.  
  12. if .%1==. goto no_param
  13.  
  14. if not exist %1\nul goto badpath
  15.  
  16. if "%1"=="c:" goto def
  17. if "%1"=="C:" goto def
  18. if "%1"=="d:" goto def
  19. if "%1"=="D:" goto def
  20. if "%1"=="e:" goto def
  21. if "%1"=="E:" goto def
  22. if "%1"=="f:" goto def
  23. if "%1"=="F:" goto def
  24. if "%1"=="g:" goto def
  25. if "%1"=="G:" goto def
  26. if "%1"=="h:" goto def
  27. if "%1"=="H:" goto def
  28. if "%1"=="i:" goto def
  29. if "%1"=="I:" goto def
  30. if "%1"=="j:" goto def
  31. if "%1"=="J:" goto def
  32. if "%1"=="k:" goto def
  33. if "%1"=="K:" goto def
  34. if "%1"=="l:" goto def
  35. if "%1"=="L:" goto def
  36. if "%1"=="m:" goto def
  37. if "%1"=="M:" goto def
  38. if "%1"=="n:" goto def
  39. if "%1"=="N:" goto def
  40. if "%1"=="o:" goto def
  41. if "%1"=="O:" goto def
  42. if "%1"=="p:" goto def
  43. if "%1"=="P:" goto def
  44. if "%1"=="q:" goto def
  45. if "%1"=="Q:" goto def
  46. if "%1"=="r:" goto def
  47. if "%1"=="R:" goto def
  48. if "%1"=="s:" goto def
  49. if "%1"=="S:" goto def
  50. if "%1"=="t:" goto def
  51. if "%1"=="T:" goto def
  52. if "%1"=="u:" goto def
  53. if "%1"=="U:" goto def
  54. if "%1"=="v:" goto def
  55. if "%1"=="V:" goto def
  56. if "%1"=="w:" goto def
  57. if "%1"=="W:" goto def
  58. if "%1"=="x:" goto def
  59. if "%1"=="X:" goto def
  60. if "%1"=="y:" goto def
  61. if "%1"=="Y:" goto def
  62. if "%1"=="z:" goto def
  63. if "%1"=="Z:" goto def
  64.  
  65. if not exist %1\hike.com goto nohike
  66. echo 
  67. echo Ready to install "Front Page Sports: Football" update to
  68. echo    %1
  69. echo 
  70. echo Press CTRL-C to Abort or
  71. pause
  72. copy read.me %1 >nul
  73. copy uninstal.exe %1 >nul
  74. copy install.scr %1 >nul
  75. copy patch.* %1 >nul
  76. copy %1\patch.101 %1\patch.rtp >nul
  77. %1\patch %1
  78. copy %1\patch.102 %1\patch.rtp >nul
  79. %1\patch %1
  80. del %1\patch.*
  81. echo 
  82. echo **** Installation complete. ****
  83. echo 
  84. echo To view release notes, go to the %1 directory,
  85. echo and then use the INSTALL program.
  86. echo 
  87. echo To run, go to the %1 directory,
  88. echo and then type:  HIKE.
  89. echo 
  90. goto end
  91.  
  92.  
  93. :def
  94. if not exist %1\dynamix\football\hike.com goto nohike
  95. echo 
  96. echo Ready to install "Front Page Sports: Football" update to
  97. echo    %1\dynamix\football
  98. echo 
  99. echo Press CTRL-C to Abort or
  100. pause
  101. copy read.me %1\dynamix\football >nul
  102. copy uninstal.exe %1\dynamix\football >nul
  103. copy install.scr %1\dynamix\football >nul
  104. copy patch.* %1\dynamix\football >nul
  105. copy %1\dynamix\football\patch.101 %1\dynamix\football\patch.rtp >nul
  106. %1\dynamix\football\patch %1\dynamix\football
  107. copy %1\dynamix\football\patch.102 %1\dynamix\football\patch.rtp >nul
  108. %1\dynamix\football\patch %1\dynamix\football
  109. del %1\dynamix\football\patch.*
  110. echo 
  111. echo **** Installation complete. ****
  112. echo 
  113. echo To view release notes, go to the %1\dynamix\football directory,
  114. echo and then use the INSTALL program.
  115. echo 
  116. echo To run, go to the %1\dynamix\football directory,
  117. echo and then type:  HIKE.
  118. echo 
  119. goto end
  120.  
  121.  
  122. :no_param
  123. echo 
  124. echo 
  125. echo       ┌───────────────────────────────────────────────────────────────────┐
  126. echo       │          ERROR:  You did not specify a destination drive.         │
  127. echo       └───────────────────────────────────────────────────────────────────┘
  128. echo 
  129. echo 
  130. echo 
  131. pause
  132. cls
  133. goto usage
  134.  
  135.  
  136. :badpath
  137. echo 
  138. echo 
  139. echo       ┌───────────────────────────────────────────────────────────────────┐
  140. echo       │ ERROR:  The drive or directory path that you specified is invalid.│
  141. echo       └───────────────────────────────────────────────────────────────────┘
  142. echo 
  143. echo 
  144. echo 
  145. pause
  146. cls
  147. goto usage
  148.  
  149.  
  150. :nohike
  151. echo 
  152. echo 
  153. echo        ┌───────────────────────────────────────────────────────────────────┐
  154. echo        │ ERROR:  The original Football program has not been installed to   │
  155. echo        │ the drive or directory path you have specified.  Please run the   │
  156. echo        │ install program again.  If this does not work you may have to     │
  157. echo        │ reinstall your original copy of Front Page Sports: Football.      │
  158. echo        └───────────────────────────────────────────────────────────────────┘
  159. echo 
  160. echo 
  161. echo 
  162. pause
  163. cls
  164. goto usage
  165.  
  166.  
  167. :usage
  168. echo 
  169. echo 
  170. echo 
  171. echo   ╔═══════════════════════════════════════════════════════════════════════════╗
  172. echo   ║ To install this update, type 'INSTALL' followed by the drive on which you ║
  173. echo   ║ installed the original Front Page Sports: Football.  For example, type:   ║
  174. echo   ║                                                                           ║
  175. echo   ║                       INSTALL C:                                          ║
  176. echo   ║                                                                           ║
  177. echo   ║ if you previously installed Front Page Sports: Football to your C: drive. ║
  178. echo   ║                                                                           ║
  179. echo   ║ If, for some reason, you previously installed Front Page Sports: Football ║
  180. echo   ║ to a directory other than \DYNAMIX\FOOTBALL, type the new full directory  ║
  181. echo   ║ path after the drive letter when you run install.  For example, type:     ║
  182. echo   ║                                                                           ║
  183. echo   ║                       INSTALL D:\GAMES\FOOTBALL                           ║
  184. echo   ║                                                                           ║
  185. echo   ║ if you have installed Front Page Sports: Football to the directory        ║
  186. echo   ║ \GAMES\FOOTBALL on your D: drive.                                         ║
  187. echo   ╚═══════════════════════════════════════════════════════════════════════════╝
  188. echo 
  189. echo 
  190. goto end
  191.  
  192.  
  193. :end
  194.